package com.smartrm.trade.domain.valueobject;

/*
 * @program: common-starters
 * @description: 平台类型
 * @author: houhong
 * @create: 2023-01-11 00:52
 */
public enum PlatformType {

    Wechat(0);

    private final int code;

    private PlatformType(int code) {
        this.code = code;
    }

    public int code() {
        return this.code;
    }

    public static PlatformType of(int code) {
        for (PlatformType type : values()) {
            if (type.code == code) {
                return type;
            }
        }
        return null;
    }
}